﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MultiResolutioning.Structures
{
	/// <summary>
	/// Klasa reprezentuje trojkat siatki przystosowany do przesylania przezs usluge.
	/// </summary>
	public class FaceSmall
	{
		public int faceId;
		public List<int> verticesIds;

		/// <summary>
		/// Inicjalizuje obiekt.
		/// </summary>
		public FaceSmall()
		{
			faceId = 0;
			verticesIds = new List<int>();
		}

		/// <summary>
		/// Inicjalizuje obiekt.
		/// </summary>
		/// <param name="face">The face.</param>
		public FaceSmall(Face face)
		{
			this.faceId = face.faceId;
			this.verticesIds = (from v in face.vertices
							   select v.vertexId).ToList();
		}
	}
}
